package com.example.cloud;

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;

/**
 * 基于Zuul的API网关服务
 *
 * @author tongyufu
 */
@EnableZuulProxy
@SpringBootApplication
public class ZuulCloudApplication {

    /**
     * 基于Zuul的API网关服务
     *
     * @param args 启动参数
     */
    public static void main(String[] args) {
        new SpringApplicationBuilder(ZuulCloudApplication.class).web(WebApplicationType.SERVLET).run(args);
    }

}
